import 'package:boss/ui/widget/image/base_image.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

class PhoneIcon extends StatelessWidget {
  final String phoneNumber;

  const PhoneIcon(this.phoneNumber, {Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return IconButton(
      icon: BaseImage(
        'assets/image/takeout_phone.png',
        width: 50.w,
        height: 50.w,
      ),
      onPressed: () {
        Utils.callPhone(phoneNumber);
      },
    );
  }
}
